package com.lcf.feign.service.system;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 描述：字典feign
 *
 * @author lcf
 * @since 2025/3/4 20:09
 */
@FeignClient(name = "${system-service-name}", contextId = "dictTable", url ="${system-service-url}", path = "feign/dict")
public interface SysDictFeignService {
    /**
     * 根据字典类型获取字典列表code->name
     */
    @GetMapping("typeCode")
    Map<String, String> getByTypeCode(@RequestParam String typeCode);
}
